import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 陪护公司列表 */
export const companionCompanyListApi = generateRequest(`${apiUrlPrefix}/pcs/companionCompany/list`)

/** 新增陪护公司 */
export const createCompanionCompanyApi = generateRequest(`${apiUrlPrefix}/pcs/companionCompany`)

/** 陪护公司修改 */
export const updateCompanionCompanyApi = generateRequest(`${apiUrlPrefix}/pcs/companionCompany/{id}`, 'put')

/** 陪护公司删除 */
export const deleteCompanionCompanyApi = generateRequest(`${apiUrlPrefix}/pcs/companionCompany/{id}`, 'delete')
